package com.donleo.zuul.service;

import com.donleo.common.api.CommonResult;
import com.donleo.zuul.config.FeignClientConfig;
import com.donleo.zuul.service.impl.UserServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author liangd
 * @since 2021-01-16 11:16
 */
@FeignClient(value = "security-server",fallbackFactory = UserServiceFallbackFactory.class,configuration = FeignClientConfig.class)
public interface UserService {

    @PostMapping("/user/checkAuth")
    CommonResult checkAuth(@RequestParam("userCode") String userCode, @RequestParam("uri") String uri);
}
